export default [
  { path: '/ide', name: '开发环境', icon: 'code', component: '@/pages/Ide' },
  {
    path: '/stack',
    name: '组件',
    icon: 'codepen',
    component: '@/pages/Stack',
    access: 'adminRouteFilter',
  },
  {
    path: '/environment',
    name: '资源配置',
    icon: 'tool',
    component: '@/pages/Environment',
    access: 'adminRouteFilter',
  },
  {
    path: '/registry',
    name: '镜像源',
    icon: 'bank',
    component: '@/pages/Registry',
    access: 'adminRouteFilter',
  },
  {
    path: '/image',
    name: '镜像',
    icon: 'copy',
    component: '@/pages/Image',
    access: 'adminRouteFilter',
  },
  {
    path: '/node',
    name: '节点',
    icon: 'cluster',
    component: '@/pages/Node',
    access: 'adminRouteFilter',
  },
  {
    path: '/system',
    name: '系统',
    icon: 'setting',
    access: 'adminRouteFilter',
    routes: [
      {
        path: '/system/auth',
        name: '用户权限',
        icon: 'user',
        routes: [
          {
            path: '/system/auth/tenant',
            name: '租户',
            component: '@/pages/Tenant',
          },
          {
            path: '/system/auth/role',
            name: '角色',
            component: '@/pages/Role',
          },
          {
            path: '/system/auth/user',
            name: '用户',
            component: '@/pages/User',
          },
          { redirect: '/system/auth/tenant' },
        ],
      },
      { redirect: '/system/auth' },
    ],
  },
  { path: '/index.html', redirect: '/' },
  { path: '/', redirect: '/ide' },
  { component: '@/pages/404' },
];
